<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
	<title>Login Page</title>
	<link rel="stylesheet" href="<c:url value='/resources/css/style.css'/>" type="text/css">
</head>
<body onload='document.f.j_username.focus();'>
	<div class='top'>
		<ul>
			<li><a href="<c:url value='/' />">Home</a></li>
			<li><a href="<c:url value="/login.html"/>">Log In</a></li>
			<li><a href="<c:url value="/create_user.html"/>">Create User</a></li>
		</ul>
		<br style='clear: both;'>
	</div>
	<div class='center'>
		<h3>Login with Username and Password (Custom Page)</h3>
	
		<form name='f' action="<c:url value='j_spring_security_check' />"  method='POST'>
	 		<c:if test="${not empty param.login_error}">
				<div class="errorblock">
					Your login attempt was not successful, try again.<br /> Caused :
					${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
				</div>
			</c:if>
			<table>
				<tr>
					<td>User:</td>
					<td><input type='text' name='j_username' value=''>
					</td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input type='password' name='j_password' />
					</td>
				</tr>
				<tr>
					<td colspan='2'><input name="submit" type="submit"
						value="submit" />
					</td>
				</tr>
				<tr>
					<td colspan='2'><input name="reset" type="reset" />
					</td>
				</tr>
			</table>
	 
		</form>
	</div>
</body>
</html>